package com.hx.reporter.domain;

import com.hx.common.annotation.Excel;
import com.hx.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 用户对象 talk_user
 * 
 * @author ${author}
 * @date 2023-05-28
 */
public class User extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** userId */
    private String id;

    /** 昵称 */
    @Excel(name = "昵称")
    private String name;

    /** 账号 */
    @Excel(name = "账号")
    private String userAccount;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String emil;

    /** 电话 */
    @Excel(name = "电话")
    private String phone;

    /* 头像*/
    @Excel(name = "头像")
    private String avatar;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmil() {
        return emil;
    }

    public void setEmil(String emil) {
        this.emil = emil;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("userAccount", getUserAccount())
            .append("password", getPassword())
            .append("emil", getEmil())
            .append("phone", getPhone())
            .append("avatar",getAvatar())
            .toString();
    }
}
